import request from '@/utils/request'

// 仓库添加
export function CreateWareHouse(data) {
  return request({
    url: '/mall/warehouse/add',
    method: 'post',
    data
  })
}

// 仓库修改
export function EditWareHouse(data) {
  return request({
    url: '/mall/warehouse/edit',
    method: 'post',
    data
  })
}

// 仓库删除
export function RemoveWareHouse(data) {
  return request({
    url: '/mall/warehouse/remove/' + data.join(','),
    method: 'delete',
    data:{}
  })
}


// 仓库分页列表查询
export function GetWareHouseList(params) {
  return request({
    url: '/mall/warehouse/list',
    method: 'get',
    params
  })
}
